package com.perye.dokit.weController;

import com.perye.dokit.base.BaseController;
import com.perye.dokit.service.detestservice;
import com.perye.dokit.utils.pageData.PageData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/test")
public class detestcontroller extends BaseController {

    @Autowired
    private detestservice detestservice;

    @GetMapping("/getall")
    public List<PageData> getlist() throws Exception{
        System.out.println("11111111111111111111111111111111111");
        PageData pageData = getPageData();
        List<PageData> pageData1=detestservice.getlist(pageData);
        return pageData1;
    }
}
